package cn.samler.project.guestbook.model.request;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

@Data
public class MessageModifyRequest {
    @NotNull(message = "参数错误")
    @Positive(message = "留言id有误")
    private Integer id;

    @NotNull(message = "参数错误")
    @NotEmpty(message = "留言内容不能为空")
    private String content;
}
